package com.basic.library.utils;

import android.graphics.Color;
import com.google.android.material.snackbar.Snackbar;
import android.view.View;
import android.widget.TextView;

public class SnackbarUtil {
	
	public  static Snackbar make(View v, String msg, int second){
		Snackbar sBar = Snackbar.make(v, msg, second);
		Snackbar.SnackbarLayout ve = (Snackbar.SnackbarLayout)sBar.getView();
		((TextView) ve.findViewById(com.google.android.material.R.id.snackbar_text)).setTextColor(Color.parseColor("#FFFFFF"));
		return sBar;
	}
}
